﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GlassStore.ViewModels.GlassSearchViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	眼镜搜索
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div align="center">
        <table class="glass-main">
            <tr>
                <td>
                    <% Html.RenderPartial("SearchForm"); %>
                    <% Html.RenderAction("CatalogueMenu", "Glass"); %>
                </td>
                <td>
                    <% Html.RenderAction("PropertyMenu", "Glass"); %>
                    <% if (Model.Glasses.Count() == 0)
                       { %>
                    <br />
                    抱歉，没有找到您需要的眼镜。
                    <% }
                       else
                       { %>
                    <% Html.RenderPartial("GlassList", Model.Glasses); %>
                    <div id="glass-list-pager">
                        <%: MvcHtmlString.Create(Html.Pager(Model.Index, Model.Total, string.Format("/Glass/Search?keyword={0}&price1={1}&price2={2}&id=", Model.Keyword, Model.Price1, Model.Price2)))%></div>
                    <% } %>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
